<?php
$ArAnnouncements = Dracosys::getSessionValue(SESSION_INTERFACE, 'AnnouncementsList');
?>
<section id="AnnouncementList">
<h2>Listagem de Comunicados</h2>
    <table id="AnnouncementList_positions" class="list">
        <thead>
            <tr>
                <th>Titulo</th>
                <th>Tipo de Comunicado</th>
                <th>Visualizar</th>
            </tr>
        </thead>
        <tfoot>
        </tfoot>
         <?php
                foreach($ArAnnouncements as $Id => $ArAnnouncements):
                    $class = ($Id % 2 == 0) ? 'color1' : 'color2';
            ?>
                <tr class="<?=$class?>">
                    <td><?=$ArAnnouncements['StTitulo']?></td>
                    <td><?=$ArAnnouncements['EnTipoComunicado']?></td>
                    <td>
                        <a href="<?=DRA_URL?>comercial/visualizar-comunicado/id/<?=$ArAnnouncements['IDComunicacao']?>"  title="Visualizar">
                            <img src="<?= DRA_VIEW_URL ?>images/descricao.png" />
                        </a>
                    </td>
                </tr>
            <?php endforeach; ?>
        </tbody>
    </table>
</section>